	/if (!${sqlite.Status[${_query}].Find[Success]}) /sqlite query ${XGenDB} ${_query} CREATE TABLE ${_tbl} (ZoneShortName TEXT PRIMARY KEY, Radius, ZRadius)
	
	
	/sqlite query ${XGenDB} pullingdata SELECT * FROM PullRads WHERE ZoneShortName = "${Zone.ShortName}"
	/varset Radius ${sqlite.result[pullingdata 1 Radius]}
	/varset ZRadius ${sqlite.result[pullingdata 1 ZRadius]}


|: -------------------------------------------------------------------------------------------- |
|: SUB: AutoIgnore   NOT USED!!!  Replaced with Sub DBadd_AutoIgnore
|: -------------------------------------------------------------------------------------------- |
Sub AutoIgnore
	/return
	/if (!${Defined[IgnoreCount]}) /declare IgnoreCount int local
	/varset IgnoreCount ${SpawnCount[npc targetable]}
	/if (!${Defined[i]}) /declare i int local 0
	/message Adding Mobs to Auto ignore:
	/for i 1 to ${IgnoreCount}
		/varset autoignore ${NearestSpawn[${i},npc targetable].Name}
		/if (${Spawn[${autoignore}].Surname.Length}>0) {
			/if (!${Ignore.Find[${autoignore}]}) {
				/echo \a-yAdding: \ayNPC: ${autoignore} \agID: ${Spawn[${autoignore}].ID} \a-y to Ignore List
				/alert add 2 "${autoignore}"
				/ini "XGenPullList.ini" "${Zone.ShortName}" "Ignore" ${Ini[XGenPullList.ini,${Zone.ShortName},Ignore]}|"${autoignore}"|"${Spawn[${autoignore}].ID}"
			}
		}
	/next i

	/call AlertList
	| /call IniFile
	/return

|: -------------------------------------------------------------------------------------------- |
|: SUB: IniFile  -  	
|:  /ini "XGenPullList.ini" "${Zone.ShortName}" "Radius" "${Radius}"
|:  /ini "XGenPullList.ini" "${Zone.ShortName}" "ZRadius" "${ZRadius}"
|: -------------------------------------------------------------------------------------------- |
Sub IniFile
	SAFEZONE /return
	/return
	/if (!${Defined[c]}) /declare c int local 0
	/if (!${Defined[c1]}) /declare c1 int local 0
	| == Readini settings for your zone
	/if (!${Defined[Radius]}) /declare Radius int outer 0
	/if (!${Defined[ZRadius]}) /declare ZRadius int outer 0
	/if (!${Defined[Ignore]}) /declare Ignore string outer
	/if (!${Defined[Pull]}) /declare Pull string outer

	/varset Radius ${Ini[XGenPullList.ini,${Zone.ShortName},Radius]}
	/varset ZRadius ${Ini[XGenPullList.ini,${Zone.ShortName},ZRadius]}
	/varset Ignore ${Ini[XGenPullList.ini,${Zone.ShortName},Ignore]}
	/varset Pull ${Ini[XGenPullList.ini,${Zone.ShortName},Pull]}

	|if settings not there, create them.
	/if (!${Radius}) {
		/ini "XGenPullList.ini" "${Zone.ShortName}" "Radius" "250"
		/varset Radius 250
	}
	/if (!${ZRadius}) {
		/ini "XGenPullList.ini" "${Zone.ShortName}" "ZRadius" "125"
		/varset ZRadius 125
	}
	/if (${Ignore.Equal[NULL]}) {
		/ini "XGenPullList.ini" "${Zone.ShortName}" "Ignore" "NONE"
		/varset Ignore NONE
	}
	/if (${Pull.Equal[NULL]}) {
		/ini "XGenPullList.ini" "${Zone.ShortName}" "Pull" "ALL"
		/varset Pull ALL
	}
	/if (!${Ignore.Equal[NULL]}) {
		/if (!${Ignore.Find[none]}) {
			/if (!${Ignore.Count[|]}) {
				/squelch /alert add 1 ${Ignore}
			} else /if (${Ignore.Count[|]}) {
				/for c 1 to ${Math.Calc[${Ignore.Count[|]}+1]}
					/squelch /alert add 1 ${Ignore.Arg[${c},|]}
				/next c
			}
		}
	}

	/if (!${Pull.Equal[NULL]}) {
		/if (!${Pull.Find[all]}) {
			/if (!${Pull.Count[|]}) {
				/squelch /alert add 10 ${Pull}
			} else /if (${Pull.Count[|]}) {
				/for c1 1 to ${Math.Calc[${Pull.Count[|]}+1]}
					/squelch /alert add 10 ${Pull.Arg[${c},|]}
				/next c1
			}
		}
	}
	/return


